package user;

import book.Book;
import book.BookList;
import operation.IOperation;

public abstract class User {
    String name;
    public IOperation [] iOperation;   //用于存放用户对应操作

    public User(String name) {
        this.name = name;
    }
    public abstract int menu();
    public void doOperation(int choice, BookList bookList){
        iOperation[choice].work(bookList);      //数组+choice可得调用对应操作类
    }

}
